package com.exam.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.exam.demo.controller.dto.QuestionDTO;
import com.exam.demo.entity.Answer;
import com.exam.demo.mapper.AnswerMapper;
import com.exam.demo.service.AnswerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 功能描述
 *
 * @author yxj30
 * @date 2022/03/16  19:29
 */
@Service
public class AnswerServiceImpl extends ServiceImpl<AnswerMapper, Answer> implements AnswerService {

    @Resource
    AnswerMapper answerMapper;

    @Override
    public List<QuestionDTO> getAnswerByStudentIdAndPaperId(String paperId, String studentId) {
        return answerMapper.getAnswerByStudentIdAndPaperId(paperId,studentId);
    }
}
